package com.zk.nakedfowl.basicData.pojo;

import com.zk.nakedfowl.barcodeMachineGrantManager.pojo.MachineGrant;
import com.zk.nakedfowl.barcodeMachineGrantManager.pojo.MachineRecovery;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * 实体类
 * @author Administrator
 *
 */
@Entity
@Table(name="slaughter_house")
public class House implements Serializable{

	@Id
	private String  id;//屠宰场id
	
	private String name;//屠宰场名称
	private String addr;//屠宰场地址
	private String userId;//用户id
	private String longitude;//经度
	private String latitude;//纬度
	private String createBy;//创建者
	private java.util.Date createDate;//创建时间

	@OneToMany(mappedBy = "house")
	private Set<MachineGrant> machineGrants = new HashSet<>();

	@OneToMany(mappedBy = "house")
	private Set<MachineRecovery> machineRecoveries = new HashSet<>();

	
	public String getId() {
		return  id;
	}
	public void setId(String  id) {
		this. id =  id;
	}

	public String getName() {		
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getAddr() {		
		return addr;
	}
	public void setAddr(String addr) {
		this.addr = addr;
	}

	public String getUserId() {		
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getLongitude() {		
		return longitude;
	}
	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public String getLatitude() {		
		return latitude;
	}
	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getCreateBy() {		
		return createBy;
	}
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public java.util.Date getCreateDate() {		
		return createDate;
	}
	public void setCreateDate(java.util.Date createDate) {
		this.createDate = createDate;
	}


	
}
